package com.example.administrator.liveapp.bean;

import java.util.List;

/**
 * Created by Administrator on 2017/10/12 0012.
 */

public class ShoppingCartBean {

    /**
     * cart : [{"cartcount":"3","bookid":"20","booktitle":"大卫,不可以!","bookbannerimg":"/Uploads/2017/09/1505701254232055.jpg","bookprice":"25.80","freight":"10.00","aid":"1","storename":"南通半书房"},{"cartcount":"3","bookid":"22","booktitle":"丝绸之路:一部全新的世界史","bookbannerimg":"/Uploads/2017/09/1505701105139028.jpg","bookprice":"76.60","freight":"35.00","aid":"1","storename":"南通半书房"}]
     * freight : [{"freight":"35.00","storename":"南通半书房"}]
     * result : true
     * code : 6410
     * message : success
     */

    private boolean result;
    private int code;
    private String message;
    private List<CartBean> cart;
    private List<FreightBean> freight;

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<CartBean> getCart() {
        return cart;
    }

    public void setCart(List<CartBean> cart) {
        this.cart = cart;
    }

    public List<FreightBean> getFreight() {
        return freight;
    }

    public void setFreight(List<FreightBean> freight) {
        this.freight = freight;
    }

    public static class CartBean {
        /**
         * cartcount : 3
         * bookid : 20
         * booktitle : 大卫,不可以!
         * bookbannerimg : /Uploads/2017/09/1505701254232055.jpg
         * bookprice : 25.80
         * freight : 10.00
         * aid : 1
         * storename : 南通半书房
         */

        private String cartcount;
        private String bookid;
        private String booktitle;
        private String bookprice;
        private String freight;
        private String aid;
        private String storename;
        private boolean select;
        private int num;
        private String discount;
        private String bookimgurl;

        public void setBookimgurl(String bookimgurl) {
            this.bookimgurl = bookimgurl;
        }

        public String getBookimgurl() {
            return bookimgurl;
        }

        public String getDiscount() {
            return discount;
        }

        public void setDiscount(String discount) {
            this.discount = discount;
        }

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }

        public boolean isSelect() {
            return select;
        }

        public void setSelect(boolean select) {
            this.select = select;
        }

        public String getCartcount() {
            return cartcount;
        }

        public void setCartcount(String cartcount) {
            this.cartcount = cartcount;
        }

        public String getBookid() {
            return bookid;
        }

        public void setBookid(String bookid) {
            this.bookid = bookid;
        }

        public String getBooktitle() {
            return booktitle;
        }

        public void setBooktitle(String booktitle) {
            this.booktitle = booktitle;
        }

        public String getBookprice() {
            return bookprice;
        }

        public void setBookprice(String bookprice) {
            this.bookprice = bookprice;
        }

        public String getFreight() {
            return freight;
        }

        public void setFreight(String freight) {
            this.freight = freight;
        }

        public String getAid() {
            return aid;
        }

        public void setAid(String aid) {
            this.aid = aid;
        }

        public String getStorename() {
            return storename;
        }

        public void setStorename(String storename) {
            this.storename = storename;
        }
    }

    public static class FreightBean {
        /**
         * freight : 35.00
         * storename : 南通半书房
         */

        private String freight;
        private String storename;

        public String getFreight() {
            return freight;
        }

        public void setFreight(String freight) {
            this.freight = freight;
        }

        public String getStorename() {
            return storename;
        }

        public void setStorename(String storename) {
            this.storename = storename;
        }
    }
}

